<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java" %>
<%@ include file="common/header.jspf"%>
<%@ include file="common/navigation.jspf"%>
<div class="panel panel panel-primary" style="width: 800px;margin: auto;">
    <div class="panel-heading">
        用户列表
    </div>
    <div class="panel-body">
<table class="table table-hover">
    <thead>
        <tr>
            <th>ID</th>
            <th>用户名</th>
            <th>年龄</th>
            <th>性别</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <c:forEach items="${list}" var="user">
        <tr>
            <td>${user.id}</td>
            <td>${user.name}</td>
            <td>${user.age}</td>
            <td>${user.gender}</td>
            <td>
                <a type="button" class="btn btn-primary" href="edit.do?id=${user.id}">编辑</a>
                <a type="button" class="btn btn-warning" href="del.do?id=${user.id}">删除</a>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
    </div>
</div>
<%@include file="common/footer.jspf"%>
